package com.code.day7FenZ;

public class Dome01 {
    public static void main(String[] args) {
        Person preson1 = new Person();
//        preson.name = "碎碎念";
//        preson.age = 18;
//        System.out.println(preson.name);
//        System.out.println(preson.age);

//        给name1赋值
        preson1.name1 = "碎碎念";
//       调用speak局部方并传入了值哈哈
        preson1.speak("哈哈");
        System.out.println(preson1);

        System.out.println("==================");
        Person preson2 = new Person();
        preson2.name1 = "李寒衣";
        preson2.speak("李长风");
        System.out.println(preson2);


        System.out.println("==================");


        preson1.setName("碎碎念");
        preson1.setAge(18);

        String neme = preson1.getName();
        int age = preson1.setAge();
        System.out.println(neme);
        System.out.println(age);


    }


}
